package com.bjpowernode.common.enums;

/**
 * 响应枚举类
 */
public enum RespCode {


    //成功的枚举
    OK(1000, "成功"),

    //失败的枚举
    FAIL(1001, "请求失败，请稍后重试"),

    //请求参数错误
    REQUEST_PARAM_ERR(1002, "请求参数错误"),

    //手机号已经注册过
    PHONE_USER_EXITS(1003, "该手机号已经注册过，请进行登录！"),

    //手机号没有注册过
    PHONE_USER_NOT_EXITS(1004, "该手机号没有被注册，请先进行注册！"),

    //短信验证码无效
    SMS_CODE_INVALID(1005, "短信验证码无效！"),

    //手机号或密码无效
    PHONE_PASSWORD_INVALID(1006, "手机号或密码无效！"),

    //登录token无效，请进行登陆
    TOKEN_LOGIN_INVALID(1007, "请进行登陆！"),

    //姓名或身份证号错误
    NAME_IDCARD_ERR(1008, "姓名或者身份证号错误！"),

    //实名认证失败
    REALNAME_ERR(1009, "实名认证失败！"),

    //数据库中的密码与前端传入的密码不匹配
    USER_PASSWORD_ERR(1010, "密码错误！"),

    //请先进行实名认证
    USER_RELNAME_REQUIRED(1011, "请先进行实名认证！"),

    //账户余额不足
    USER_ACCOUNT_ENOUGH(1012, "账户余额不足！"),

    //资金账号无效
    ACCOUNT_NOT_EXISTS(1013, "资金账号无效！"),

    //理财产品不存在
    PRODUCT_NOT_EXISTS(1014, "理财产品不存在！"),

    //产品可投资金额不足
    PRODUCT_LEFTMONEY_NOT_ENOUGH(1015, "理财产品可投资金额不足！"),

    //投资金额不在购买范围内
    PRODUCT_BUY_NOT_RANGE(1016, "投资金额不在购买范围内！"),

    //不能重复实名认证
    REALNAME_NOT_DOUBLE(1017, "不能重复实名认证！"),

    //无充值记录
    RECHARGE_RECODE_NULL(1018, "无充值记录！"),

    //该订单已被处理过
    RECHARGE_HANDLE_DOUBLE(1019, "充值已经处理完成！"),

    //订单
    RECHARGE_MONEY_DIFF(1020, "充值金额不一致！"),

    //请上传文件
    UPLOAD_FILE_EMPTY(1021, "请上传文件！"),

    //文件类型不允许
    UPLOAD_TYPE_ERR(1022, "文件类型错误！"),

    //头像文件应小于300*300！
    UPLOAD_W_H_ERR(1023, "头像文件应小于300*300！"),

    //头像文件不能超过1M
    UPLOAD_SIZE_ERR(1024, "头像文件不能超过1M！"),

    //上传头像失败
    UPLOAD_FILE_ERR(1025,"上传头像失败，请稍后重试！"),

    //存储mysql失败
    UPLOAD_FILE_SAVE_ERR(1026,"头像保存失败，请稍后重试！")




    ;

    private int code;
    private String msg;

    RespCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
